package com.igroupes.ovineherd.constant;

import java.util.HashMap;
import java.util.Map;

public abstract  class FieldConstant {
    // 前端使用字段和数据库字段映射
    public static final Map<String,String> SHOW_MAP = new HashMap<>();
    public static final Map<String,String> STORE_MAP = new HashMap<>();
    static {
        SHOW_MAP.put("add_datetime","addTime");
        SHOW_MAP.put("add_user","addUser");
        SHOW_MAP.put("edit_datetime","updateTime");
        SHOW_MAP.put("edit_user","updateUser");


        STORE_MAP.put("addTime","add_datetime");
        STORE_MAP.put("addUser","add_user");
        STORE_MAP.put("updateTime","edit_datetime");
        STORE_MAP.put("updateUser","edit_user");
    }

}
